third-party-exp-api icon

third-party-exp-api

(0 reviews)

Western Union - Refund Search

Description: Refund Search needs to be sent first before the actual Refund since “Refund Transaction” requires details of the associated MTCN such as Sender, Receiver, and Payment Details etc. Those details are retrieved using the Search.

The experience API (third-party-api) will push the requests to third-party-prc api which sends the request to wu-sys-api and responds back to the channel.

Channel can send the following data in the query parameter: transactionId(Mandatory), moneyTransferControlNumber(Mandatory), moneyTransferDat(optional), currencyIsoCode(Optional)

Mulesoft Request:

Headers:

Mandatory Headers: x-correlation-id, client_id, Authorization, x-channel-id

Optional Headers: x-sub-channel-id, , x-bank-id, x-user-id, x-debug-flag, x-customer-id, client_secret

Paramaters:

URI Params: NA

Query Params: transactionId(Mandatory),
moneyTransferControlNumber(Mandatory),
moneyTransferDat(optional),
currencyIsoCode(Optional)

Content-type: application/json

Mulesoft Response:

Success Response: (200)

{
"status": {
    "success": true,
    "code": "200",
    "arabicMessage": "تمت العملية بنجاح",
    "englishMessage": "The Operation has been Successfully Completed"
    },
"response": {
"sender":
{
    "firstName": "MIKA",
    "lastName": "YARDEN",
    "address":{
        "addressLine1": "1ST STREET",
        "addressLine2": "",
        "city": "ORBID",
        "state": "",
        "postalCode": "11931",
        "countryIsoCode": "JO"
    },
    "email": "MIKA@GMAIL.COM",
    "contactPhone": "",
    "mobilePhone": "",
    "universalBuffer": "0003JOR01101ST STREET0305IRBID0506JORDAN0605119310806F00L062301Y3401I4301Y4402EN5203962531096295010995801N5914MIKA@GMAIL.COM8012CAPITAL BANK8208123407968607SAVINGS",
    "bankAccount":{
        "name": "CAPITAL BANK",
        "accountNumber": "12340796",
        "routingNumber": "",
        "accountType": "SAVINGS"
    }
},
"receiver":
{
    "firstName": "HESHAM",
    "lastName": "LUKAS",
    "address":{
        "addressLine1": "",
        "addressLine2": "",
        "city": "",
        "state": "",
        "postalCode": "",
        "countryIsoCode": "PH"
    },
    "email": "",
    "contactPhone": "",
    "mobilePhone": "",
    "universalBuffer": "0003PIL0806F00L053401I4005JOT444109AJO2500684502EN4601Y5203962531096295010995701N5801N"
},
"paymentDetails":{
    "origination":{
        "principalAmount": 1643,
        "grossAmount": 1993,
        "currencyIsoCode": "JOD",
        "countryIsoCode": "JO"
    },
    "destination": {
        "expectedPayoutAmount": 1643,
        "actualPayoutAmount": ,
        "currencyIsoCode": "PHP",
        "countryIsoCode": "PH",
        "stateCode": "",
        "city": "",
        "expectedPayoutMethod": ""
    },
    "taxes": {
        "taxAmount": ,
        "taxRate": ,
        "municipalTax": 0,
        "stateTax": 0,
        "countyTax": 0
    }
    "fees":{
        "baseCharges": 350,
        "deliveryCharges": 0,
        "otherCharges": 0,
        "charges": 350,
        "exchangeFee": ,
        "conversionFee": ,
        "secondExchangeFee":
    }
    "identificationQuestion": "",
    "identificationAnswer": "",
    "transactionType": "",
    "transactionId": 2204681929147079,
    "moneyTransferControlNumber": "1929147079",
    "moneyTransferDate": "02-15-22 0657A EST",
    "referenceKey": "411238400-#R08",
    "refundableFlag": "Y",
    "julianDate": "220468",
    "doddFrankRefundableFlag": ""
  }
 }
}

Sample Error Response:

500 :

{
    "success”:  false,
    "code”:  500,
    "reasonCode”: "Internal Server Error",
    "arabicMessage”: "",
     "englishMessage":"NO MATCHING RECORDS FOUND",
    "backendError": "NO MATCHING RECORDS FOUND",  (if debug flag is on)
    "backendCode": "D0004" (if debug flag is on)
}

Reviews